﻿#region File and License Information
/*
<File>
	<License>
		Copyright © 2009 - 2017, Daniel Vaughan. All rights reserved.
		This file is part of Calcium (http://calciumsdk.net), 
		which is released under the MIT License.
		See file /Documentation/License.txt for details.
	</License>
	<CreationDate>$CreationDate$</CreationDate>
</File>
*/
#endregion

using System.IO;

namespace Outcoder.Data
{
	public interface IBinarySerializer
	{
		byte[] Serialize(object item);

		T Deserialize<T>(byte[] array) where T : class;

		T Deserialize<T>(Stream stream) where T : class;

		object Deserialize(Stream inputStream, object instance = null);
	}
}
